﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<title>项目测试</title>
	<style type="text/css">
		#out { width: 800px; height: 100vh; }
		button, a { padding: 5px 10px; background: #0088CC; border: 0; color: #FFFFFF; cursor: pointer; }
		button:hover, a:hover { background: #00b7ee; }
		input { margin-top: 5px; }
		.errMsg { color: red; }
	</style>
</head>
<body>
<div id="out">
	<button onclick="back();">返回</button>
	<a href="/upload/2024/Fxotary.zip" target="_blank">前台模板</a>
	<a href="/upload/2024/Fxotary_admin.zip" target="_blank">后台模板</a>
	<a href="/upload/2024/Fxotary.png" target="_blank" style="margin-right: 5px; float: right;">前台模板预览</a>
	<a href="/upload/2024/Fxotary_admin.png" target="_blank" style="margin-right: 5px; float: right;">后台模板预览</a>
	<hr>
	<form action="/api/admin/tmp/upload/front" method="post" enctype="multipart/form-data">
		<p><b>上传前台模板</b></p>
		<input type="hidden" name="is_print" value="1"/>
		输入用户token：
		<input type="text" name="token" placeholder="必填" value="2b47d0965162d6e4071a2ccea919255f"/><br>
		选择前台模板：
		<input type="file" name="zip" placeholder="必选"/><br>
		输入项目名称：
		<input type="text" name="title" placeholder="选填"/><br>
		<input type="submit" value="马上上传"/>
		<div class="errMsg" id="errFront">这里显示上传结果</div>
	</form>
	<hr>
	<form action="/api/admin/tmp/upload/admin" method="post" enctype="multipart/form-data">
		<p><b>上传模板后台</b></p>
		<input type="hidden" name="is_print" value="1"/>
		输入用户token：
		<input type="text" name="token" placeholder="必填" value="2b47d0965162d6e4071a2ccea919255f"/><br>
		选择后台模板：
		<input type="file" name="zip"/><br>
		输入项目ID：
		<input type="text" name="item_id" placeholder="必填"/><br>
		<input type="submit" value="马上上传"/>
		<div class="errMsg" id="errAdmin">这里显示上传结果</div>
	</form>
	<hr>
</div>
</body>
</html>


<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="item_tmp.js"></script>
<script type="text/javascript">
	var errFront = getParamByUrl('errFront');
	var errAdmin = getParamByUrl('errAdmin');
	(function(){
		$('#errFront').html(errFront);
		$('#errAdmin').html(errAdmin);
	})();
</script>